<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "config".
 *
 * @property integer $config_id
 * @property string $config_name
 * @property string $config_value
 * @property string $type
 * @property string $remark
 */
class Config extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'config';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['config_name', 'remark'], 'required'],
            [['type'], 'string'],
            [['config_name'], 'string', 'max' => 50],
            [['config_value'], 'string', 'max' => 1000],
            [['remark'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'config_id' => 'Config ID',
            'config_name' => 'Config Name',
            'config_value' => 'Config Value',
            'type' => 'Type',
            'remark' => 'Remark',
        ];
    }
}